﻿namespace RapidDict.Modules.PronunciationService
{
    using Microsoft.Practices.Composite.Modularity;
    using Microsoft.Practices.Unity;
    using Infrastructure.Interfaces;

    [Module(ModuleName = "PronunciationServiceModule")]
    public class PronunciationServiceModule : IModule
    {
        IUnityContainer container;

        public PronunciationServiceModule(IUnityContainer container)
        {
            this.container = container;
        }

        public void Initialize()
        {
            this.container.RegisterInstance<IPronunciationService>(new Service.PronunciationService());
        }
    }
}
